//
//  songListView.m
//  LastTemp
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "songListView.h"

@implementation songListView
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView{
    self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"9"]];
    // 显示图片
    self.picImageView = [[UIImageView alloc] initWithFrame:CGRectMake((self.frame.size.width - 75) / 2, 10, 75, 75)];
    [self addSubview:self.picImageView];
    self.picImageView.layer.cornerRadius = 30;
    self.picImageView.layer.masksToBounds = YES;
    [_picImageView release];
    // 显示名字
    self.songlist_nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 80, self.frame.size.width, 40)];
    self.songlist_nameLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.songlist_nameLabel];
    [_songlist_nameLabel release];
    // 显示歌曲数
    self.quantityLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 120, self.frame.size.width, 30)];
    self.quantityLabel.textAlignment = NSTextAlignmentCenter;
    self.quantityLabel.font = [UIFont systemFontOfSize:14];
    [self addSubview:self.quantityLabel];
    [_quantityLabel release];
}
- (void)dealloc
{
    [_quantityLabel release];
    [_picImageView release];
    [_songlist_nameLabel release];
    [super dealloc];
}

@end
